﻿@using CMSMVC4.MultiResource
@model CMSMVC4.Areas.Admin.Models.GioiThieuModel
@{
    ViewBag.Title = @Admin.Partner;
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm("Index", "DoiTac", FormMethod.Post, new { @class = "form-horizontal cmxform" }))
{ 
    <div class="row-fluid">
        <div class="span7" style="width: 100%">
            <div class="box paint color_7">
                <div class="title">
                    <h4>
                        <span>@Admin.Introduction</span>
                    </h4>
                </div>
                <div class="content">
                    <div class="accordion" id="accordion4">
                        <div class="accordion-group">
                            <div class="accordion-heading"><a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion4" href="#collapseOne2">@Admin.Content </a></div>
                            <div id="collapseOne2" class="accordion-body collapse in">
                                <div class="accordion-inner">
                                    <ul id="tabExample1" class="nav nav-tabs">
                                        <li class="active"><a href="#Vi" data-toggle="tab">@Admin.Vietnamese</a></li>
                                        <li><a href="#En" data-toggle="tab">@Admin.English</a></li>
                                    </ul>
                                    <div class="tab-content">
                                        <div class="tab-pane fade in active" id="Vi">
                                            @Html.TextAreaFor(x => x.fullv)
                                        </div>
                                        <div class="tab-pane fade" id="En">
                                            @Html.TextAreaFor(x => x.fulle)
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="accordion-group">
                            <div class="accordion-heading"><a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion4" href="#collapseTwo2">@Admin.Summary </a></div>
                            <div id="collapseTwo2" class="accordion-body collapse" style="height: 0px;">
                                <div class="accordion-inner">
                                    <ul id="tabExample2" class="nav nav-tabs">
                                        <li class="active"><a href="#home" data-toggle="tab">@Admin.Vietnamese</a></li>
                                        <li><a href="#profile" data-toggle="tab">@Admin.English</a></li>
                                    </ul>
                                    <div class="tab-content">
                                    <div class="tab-pane fade in active" id="home">
                                        @Html.TextAreaFor(x => x.sumv)
                                    </div>
                                    <div class="tab-pane fade" id="profile">
                                        @Html.TextAreaFor(x => x.sume)
                                    </div>
                                </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="form-actions row-fluid">
                        <div class="span7 offset3">
                            <button type="submit" class="btn btn-primary">@Admin.SaveChange</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    @Html.ValidationSummary() <br />
    @Html.HiddenFor(x => x.Pageidv) @Html.HiddenFor(x => x.Pageide) <br />
}
@* ReSharper disable UnusedLocals *@
<script type="text/javascript">
    var editor;
    function createEditor(languageCode, id) {
        var editor = CKEDITOR.replace(id, {
            language: languageCode
        });
    }

    $(function () {
        createEditor('@ViewBag.l', 'fullv');
        createEditor('@ViewBag.l', 'fulle');
        createEditor('@ViewBag.l', 'sumv');
        createEditor('@ViewBag.l', 'sume');
    });
</script>
@* ReSharper restore UnusedLocals *@
